package com.foreveredu.propms.persist;

import java.util.List;

import com.foreveredu.propms.domain.Building;
import com.foreveredu.propms.domain.PageModel;

public interface IBuildingDao extends IDao<Building, Integer> {

	//通过楼栋编号查找楼栋对象
	Building findByBuildingId(String buildingId);

	//实现分页显示楼栋
	/*
	 * @param districtId
	 * 0代表搜索所有物业服务处的楼栋
	 * 否则，不为0代表搜索当前物业服务处的楼栋
	 */
	PageModel findBuildingList(int offset, int districtId);

	List<Building> findBuildingsBySubDistrict(int id);

}
